package com.gxa.mall.model;

import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

@Component
public class Sell {
    private Integer id;
    //单号
    private String odd;
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date selltime;
    //销售时间
    private Double sumprice;
    //负责人
    private String principal;
    //备注
    private String remark;
    public Sell() {
    }

    public Sell(Integer id, String odd, Date selltime, Double sumprice, String principal, String remark) {
        this.id = id;
        this.odd = odd;
        this.selltime = selltime;
        this.sumprice = sumprice;
        this.principal = principal;
        this.remark = remark;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOdd() {
        return odd;
    }

    public void setOdd(String odd) {
        this.odd = odd;
    }

    public Date getSelltime() {
        return selltime;
    }

    public void setSelltime(Date selltime) {
        this.selltime = selltime;
    }

    public Double getSumprice() {
        return sumprice;
    }

    public void setSumprice(Double sumprice) {
        this.sumprice = sumprice;
    }

    public String getPrincipal() {
        return principal;
    }

    public void setPrincipal(String principal) {
        this.principal = principal;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "Sell{" +
                "id=" + id +
                ", odd='" + odd + '\'' +
                ", selltime=" + selltime +
                ", sumprice=" + sumprice +
                ", principal='" + principal + '\'' +
                ", remark='" + remark + '\'' +
                '}';
    }

}
